import Vue from 'vue'
import Vuex from 'vuex'
// import { getItem, setItem } from '@/utils/storage'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    saleTotalMoney: 0,
    saleTotalNum: 0
  },
  mutations: {
    salemoneyCount (state, saleMoney, saleNum) {
      state.saleTotalMoney += saleMoney
      state.saleTotalNum += saleNum
    }
  },
  actions: {
  },
  modules: {
  }
})
